package com.zlq.cn.mapper.un;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zlq.cn.dto.DataCountDTO;
import com.zlq.cn.dto.DateCountDTO;
import com.zlq.cn.dto.VipLogTotalDTO;
import com.zlq.cn.dto.VipLogTotalGroupDTO;
import com.zlq.cn.entity.User;
import com.zlq.cn.entity.VipLog;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhoucl
 * @since 2020-06-13
 */
public interface VipLogMapper extends BaseMapper<VipLog> {

    List<DataCountDTO> totalCount(@Param("dateCountDTO") DateCountDTO dateCountDTO);

    VipLogTotalDTO vipTotalCount();

    List<VipLogTotalGroupDTO> vipTotalCountGroup(@Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);

    VipLogTotalDTO vipTotalCountDate(@Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);

    List<User> vipLogDetails(@Param("page") Page<User> page, @Param("orderType") String orderType, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);
}
